/**
* @describe 游戏数据
* @author 游金宇(KM)
* @date 2023-08-02 20:11:20
*/

import { Node, log, math } from "cc"



import { Player as BasePlayer, Battle, BattleSchema, Player } from "sgc"

import { BaseStore } from "../BaseStore"
import { Store } from "../index"

import { create } from "@bufbuild/protobuf"
import { computed, makeAutoObservable, makeObservable, observable } from "@shimotsuki/mobx"


export default class GameStore extends BaseStore {


    constructor(rootStore: Store) {
        super(rootStore)
        makeObservable(this, {

        })
    }

    /**游戏token */
    get game_token() {
        return this.rootStore.room.roomInfo?.battleInfo?.tokens.find(item => item.uid === this.rootStore.user.user_info.uid)?.token ?? ''
    }

}

